package beans;

public class Agent {
	private int id;
	private Cell position;
	private TransDirection direction;
	private State state;
	private int foodInPossession=0;

	public Agent(int id) {
		super();
		this.id = id;
		setDirection(TransDirection.TOWARDS_FOOD);
	}

	public Agent(int id, Cell position) {
		super();
		this.id = id;
		this.position = position;
		setDirection(TransDirection.TOWARDS_FOOD);
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Cell getPosition() {
		return position;
	}

	public void setPosition(Cell position) {
		this.position = position;
	}

	public TransDirection getDirection() {
		return direction;
	}

	public void setDirection(TransDirection direction) {
		this.direction = direction;
	}

	public int getFoodInPossession() {
		return foodInPossession;
	}

	public void setFoodInPossession(int foodInPossession) {
		this.foodInPossession = foodInPossession;
	}

	public State getState() {
		return state;
	}

	public void setState(State state) {
		this.state = state;
	}

	@Override
	public String toString() {
		return "Agent [id=" + id + ", position=" + position + ", direction=" + direction + ", state=" + state + ", foodInPossession=" + foodInPossession + "]";
	}

}
